package com.xh.bussiness.system.dao;

import com.xh.bussiness.system.model.GroupRule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 组权限 Mapper 接口
 * </p>
 *
 * @author Pitt
 * @since 2020-11-23
 */
public interface GroupRuleMapper extends BaseMapper<GroupRule> {

    boolean deleteByGroupId(@Param("groupId") String groupId,@Param("subjectCode")String subjectCode);

    GroupRule queryGroupRuleBySubjectCodeAndUserId(@Param("subjectCode") String subjectCode, @Param("userId") String userId);
}
